<link rel="stylesheet" type="text/css" href="/Css/uploadify.css">
<link rel="stylesheet" type="text/css" href="/Css/Admin/detail.css">
<script src="/Js/jquery.uploadify.js" type="text/javascript"></script>

<div class="pad-10">

	<div class="navigate">
		<h1>订单详情</h1>
		
		<a class="button fr" href="javascript:history.back(-1);">返回</a>
  	</div>
  	

<div class="col-tab">
<ul class="tabBut cu-li">
	<li id="tab_setting_1" class="on"
		onclick="SwapTab('setting','on','',2,1);">订单详情</li>
</ul>
<div id="div_setting_1" class="contentList pad-10">
<table width="100%" cellpadding="2" cellspacing="1" class="table_form">
    <tr>
        <th style="width:180px;"></th>
        <td>
        	<a class="button" href="/index.php/Admin/Order/print_songhuodan?id={$order.order_id}" target="_blank">发货单打印</a>
       </td>
	</tr>
    <tr>
        <th style="width:180px;">订单号,下单时间,订单状态:</th>
        <td>
        	{$order.order_sn},
        	{$order.created},
        	{$order.order_status_cn},{$order.pay_status_cn},{$order.shipping_status_cn}
       </td>
	</tr>
	<tr>
		<th>会员名,手机,真实姓名,注册时间 :</th>
		<td>
			{$order.user_name},
			{$order.user_mobile_phone},
			{$order.real_name},
			{$order.user_created}
		</td>
	</tr>
    <tr> 
        <th>收货人,手机号,收货地址:</th>
        <td>
        	{$order.consignee},
        	{$order.mobile_phone},
        	{$order.location} {$order.address}  
        </td>
    </tr>
	<tr>
		<th>快递方式,支付方式,送货时间:</th>
		<td>
			72客配送,
			<if condition="$order['pay_id'] eq 1">
			在线支付
			<elseif condition="$order['pay_id'] eq 2" />
			货到付款
			</if>,
			{$order.delivery_time}
		</td>
	</tr>
	<tr>
		<th>订单附言:</th>
		<td>
			{$order.postscript}
		</td>
	</tr>
	<tr>
		<th></th>
		<td>
			<a class="button" href="/index.php/Admin/Order/consignee?id={$order.order_id}">收货信息编辑</a>
		</td>
	</tr>
	
	<tr>
		<th>商品信息 :</th>
		<td>
			
			<include file="Fragment:order_goods" />
			<a class="button" href="/index.php/Admin/Order/goods_update?order_id={$order.order_id}">订单商品编辑</a>
		</td>
	</tr>
	
	<tr>
		<th>费用记录 :</th>
		<td>
			
			<include file="Fragment:pay_logs" />

		</td>
	</tr>
	
	<tr>
		<th>费用信息:</th>
		<td>
			商品总金额:
			<span class="red f18">¥{$order.goods_amount}</span> 
			+ 运费:<span class="red f18">¥{$order.shipping_fee}</span>
			+ 包装费:<span class="red f18">¥{$order.pack_fee}</span>
			- 礼券:<span class="red f18">¥{$order.bonus}</span>
			- 折扣:<span class="red f18">¥{$order.discount}</span>
			= 订单总金额:<span class="red f18">¥{$order.order_amount}</span>
			- 已支付金额:<span class="red f18">¥{$order.paid_amount}</span>
			= 还需要支付:<span class="red f18">¥{$order.should_pay}</span>

		</td>
	</tr>

	<tr>
		<th></th>
		<td>
			<a class="button" href="/index.php/Admin/Order/cost_update?id={$order.order_id}">费用信息编辑</a>
		</td>
	</tr>
	
	<tr>
		<th>
		订单状态:<br />
		支付状态:<br />
		发货状态:
		</th>
		<td>
			
			
			<ul class="ul-status">
			<volist name="order_status" id="o">
				<li>
				<input type="radio" id="order_status_{$key}" name="order_status" value="{$key}"<if condition="$order['order_status'] eq $key"> checked="checked"</if> />
				<label for="order_status_{$key}">{$o}</label>
				</li>
			</volist>
			</ul>
			
		
			
			
			<ul class="ul-status">
			<volist name="pay_status" id="p">
				<li>
				<input type="radio" id="pay_status_{$key}" name="pay_status" value="{$key}"<if condition="$order['pay_status'] eq $key"> checked="checked"</if> />
				<label for="pay_status_{$key}">{$p}</label>
				</li>
			</volist>
			</ul>
			
			
				
			
			<ul class="ul-status">
			<volist name="shipping_status" id="s">
				<li>
				<input type="radio" id="shipping_status_{$key}" name="shipping_status" value="{$key}"<if condition="$order['shipping_status'] eq $key"> checked="checked"</if> />
				<label for="shipping_status_{$key}">{$s}</label>
				</li>
			</volist>
			</ul>
		</td>
	</tr>
	
	
	<tr>
		<th>订单备注 :</th>
		<td>
			备注:
			<input type="text" id="message" class="input-text" style="width:300px;" />
			<input type="button" id="btnOrderLog" value="确定" class="button" />
			<div id="div-order_log">
				<include file="Fragment:order_log" />
			</div>
		</td>
	</tr>
	
	
</table>
</div>

	<div class="bk15"></div>
	<div class="btn">
		
		

		
			
		
		
	</div>
</div>
</div>


<input type="hidden" id="order_id" value="{$order.order_id}" />
<script type="text/javascript" src="/Js/adm/order/detail.js"></script>